import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import { BindComponent } from './bind/bind.component';
import { ThroughtComponent } from './throught/throught.component';
import {RouterModule, Routes} from "@angular/router";
import {FormsModule} from "@angular/forms";
import {HttpModule} from "@angular/http";
import { MultipPipe } from './pipe/multip.pipe';
import { OrderComponent } from './order/order.component';
import { PriceQuectComponent } from './price-quect/price-quect.component';
import { Code404Component } from './account/code404/code404.component';

const routeConfig: Routes = [
  {path: '', redirectTo: '/home', pathMatch: 'full'},
  {path: 'home',component: BindComponent},
  {path: 'throught',component: ThroughtComponent},
  {path: 'order',component: OrderComponent}
]

@NgModule({
  declarations: [
    AppComponent,
    BindComponent,
    ThroughtComponent,
    MultipPipe,
    OrderComponent,
    PriceQuectComponent,
    Code404Component
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    RouterModule.forRoot(routeConfig)
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
